package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.query.DestinationQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface IDestinationService {
    void insert (Destination destination);
    void delete(String id);
    void update(Destination destination);
    Destination get(String id);
    List<Destination>list();

//关联目的地查看
    List<Destination> getDestByRegionId(String rid);
//目的地分页列表
    Page<Destination> query(DestinationQuery qo);
    //目的地土司
    List<Destination> queryToasts(String destId);

    List<Destination> queryDestByRegionIdForApi(String regionId);


    Destination queryName(String name);
}

